package de.fhhof.robot.control.cmd;

import java.io.Serializable;

import de.fhhof.robot.control.IMessage;

public abstract class AbstractCommand implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected IMessage msg;
	
	protected Long cmdId;
	
	public void setMessage(IMessage msg){
		this.msg = msg;
	}
	public abstract void executeCommand();
	
	public void abortCommand(){
		System.out.println("Do nothing here.");
	}
	public IMessage getMessage(){
		return this.msg;
	}
	public void setCmdId(Long cmdId) {
		this.cmdId = cmdId;
	}
	public Long getCmdId() {
		return cmdId;
	}
	
}
